class Restaurant:
    
    def __init__(self, restaurant_name, cuisine_type):
        self.restaurant_name = restaurant_name
        self.cuisine_type = cuisine_type
    
    def describe_restaurant(self):
        """打印前述两项的信息"""
        print(f"The restaurant's name is {self.restaurant_name}.")
        print(f"The cuisine type is {self.cuisine_type}.")
    
    def open_restaurant(self):
        """指出餐厅正在营业"""
        print(f"{self.restaurant_name.title()} is open for business.")


class IceCreamStand(Restaurant):

    def __init__(self, restaurant_name, cuisine_type):
        super().__init__(restaurant_name, cuisine_type)
        self.flavors = []

    def show_flavors(self):
        print(self.flavors)


restaurant = Restaurant('天上人间', '宝剑')
print(restaurant.restaurant_name)
print(restaurant.cuisine_type)
restaurant.describe_restaurant()
restaurant.open_restaurant()
ice_cream = IceCreamStand('天上人间', '宝剑')
ice_cream.flavors = ['a', 'b', 'c']
ice_cream.show_flavors()